import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
//  路由代码区域
  {
    path:"/",
    redirect:"/product"
  },
  {
    path: "/product",
    component:()=>import("../views/Produck"),
  },
  {
    path: "/cart",
    components:{
      cart:()=>import("../views/Cart"),
    }

  }
]

const router = new VueRouter({
  routes
})

export default router
